<%@ page contentType="text/html;charset=UTF-8" %>
<div class="list">
    <table>
        <thead>
            <tr>
                <g:sortableColumn property="nome" title="${message(code: 'software.nome.label', default: 'Nome')}" />
                <g:sortableColumn property="dominio" title="${message(code: 'software.dominio.label', default: 'Dominio')}" />
                <td colspan="2" class="acao">Ações</td>
            </tr>
        </thead>
        <tbody>
        <g:each in="${softwareInstanceList}" status="i" var="softwareInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td>${fieldValue(bean: softwareInstance, field: "nome")}</td>
                <td>${fieldValue(bean: softwareInstance, field: "dominio")}</td>
                <td class="ico">
                  <a href="${createLink(controller:'software', action:'edit', id:softwareInstance.id)}">
                    <img src="${resource(dir:'images',file:'ico_edit.png')}" alt="Editar Item" title="Editar Item" />
                  </a>
                </td>
                <td class="ico">
                    <a href="${createLink(controller:'software', action:'delete', id:softwareInstance.id)}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Confirma aexclusão do registro?')}');">
                        <img src="${resource(dir:'images',file:'ico_delete.png')}" alt="Excluir Item" title="Excluir Item" class="formacao" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}"  />
                    </a>
                </td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<div class="paginateButtons">
    <g:paginate total="${softwareInstanceTotal}" />
</div>